<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 1000px;
            margin: 100px;
            /* perspective: 500px; */
        }

        .box div{
            width: 300px;
            height: 150px;
            background-color: pink;
            float: left;
            margin-right: 15px;
            color: white;
            text-align: center;
            font: 400 30px/150px "宋体";

            perspective: 500px;
        }

        .box .box2{
            transition: all 1s linear 0s;

           
        }

        .box .box2:hover{
            background-color: yellowgreen;
            /* 缩放长度两倍，高度0.5倍 */
            /* transform: scale(2,0.6); */
            /* width: 600px;
            height: 75px; */

            /* 位移 :可以使用长度值和百分比*/
            /* transform: translate(100%,150%); */
            /* 旋转 */
            /* transform:rotate(720deg); */

            /* transform: scale(2,0.5) translate(100px,50%); */

            /*  3D转换  位移*/
            /* transform：translateX(-50%); */
            /* transform：translateY(50%); */
            /* Z轴变换需要给父元素设置透视 */
            transform: translate(500px);

            
        }

    </style>
</head>

<body>
    <div class="box">
        <div class="box1">1</div>
        <div class="box2">2</div>
        <div class="box3">3</div>

    </div>
</body>
</html>